// import js from '@eslint/js'
// import pluginVue from 'eslint-plugin-vue'

// export default [
//   {
//     name: 'app/files-to-lint',
//     files: ['**/*.{js,mjs,jsx,vue}'],
//   },

//   {
//     name: 'app/files-to-ignore',
//     ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
//   },

//   js.configs.recommended,
//   ...pluginVue.configs['flat/essential'],
// ]
import js from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';

export default [
  {
    files: ['**/*.{js,mjs,jsx,vue}'],
    excludedFiles: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
    languageOptions: js.configs.recommended.languageOptions,
    plugins: {
      vue: pluginVue,
    },
    rules: {
      ...js.configs.recommended.rules,
      ...pluginVue.configs['flat/essential'].rules,
      'vue/multi-word-component-names': 'off', // 不强制要求组件命名
    },
  },
];

